class UserMailer < ActionMailer::Base

  def register(user)
    @subject    = 'sport team tracker welcomes you'
    @body ["user"] = user
    @recipients = user.email
    @from       = 'sttracker@fakemail.com'
    @sent_on    = Time.now
  end
  
  def invite(user)
    @subject    = 'come drible'
    @body ["user"] = user
    @recipients = user.email
    @from       = 'sttracker@fakemail.com'
    @sent_on    = Time.now
  end
  
end
